home *** CD-ROM | disk | FTP | other *** search
- Subject: Re: Where is FW_CFacetContext?
- Sent: 6/10/96 9:01 AM
- Received: 6/10/96 9:14 AM
- From: Laurent Delamare, laurentd@apple.com
- Reply-To: ODF Interest, ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- >Now I'm upgrading my Part from DR4 to DR5.
- >
- >I used FW_CFacetContext class in DR4.
- >But In DR5 there is not it.
- >
- >In the FWFrame.h, FW_CFacetContext class is declared.
- >But I can not find its content.
- >
- >
- >Where is FW_CFacetContext class?
-
- FW_CFacetContext was removed in ODF 1 because you should use
- FW_CViewContext instead everytime you draw inside a view, whether it's
- the frame itself or a subview:
-
- void MyFrame::Draw(Environment *ev, ODFacet* facet, ODShape* invalidShape)
- {
- FW_CViewContext vc(ev, this, odFacet, invalidShape);
-
- // now you can draw using the vc view context
- ...
- }
-
- See how it is used in the various ODF samples.
-
- Leaving FW_CFacetContext inside FWFrame.h was an omission, we'll fix it.
-
-
- ______________________________________________________________________
- Laurent Delamare laurentd@apple.com
- ODF Team http://www.devtools.apple.com/odf/
- Apple Computer, Inc. http://www.opendoc.apple.com/
-